package com.lywz.biz.service.food.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lywz.biz.common.entity.goodfood.Restaurant;
import com.lywz.biz.dao.food.RestaurantDao;
import com.lywz.biz.service.food.RestaurantsService;
import com.lywz.core.log.LogClerk;

/**
 * @author qianqi yangbolin
 * @date 2010-5-1
 */
@Service("restaurantService")
public class RestaurantServiceImpl implements RestaurantsService {

    @Autowired
    private RestaurantDao restaurantDao;

    @Override
    public List<Restaurant> getRestaurantsListByClassicFoodId(int classicFoodId) {
        try {
            return restaurantDao.getRestaurantListByClassicFoodId(classicFoodId);
        } catch (Exception e) {
            LogClerk.sysout.error(e);
            return null;
        }
    }

}
